package com.ccom.base.serviceImpl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ccom.api.domain.SysOperLog;
import com.ccom.base.mapper.SysOperLogMapper;
import com.ccom.base.service.SysOperLogService;
import com.ccom.core.common.model.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zjj
 * @date 2021/9/29 16:34
 * @description
 */
@Slf4j
@Service
public class SysOperLogServiceImpl extends ServiceImpl<SysOperLogMapper, SysOperLog> implements SysOperLogService {

    @Autowired
    private SysOperLogMapper sysOperLogMapper;

    @Override
    public Result<Boolean> saveOperLog(SysOperLog sysOperLog) {
        sysOperLogMapper.insert(sysOperLog);
        return Result.date(true);
    }
}
